﻿#ifndef MAINSERVICE_H
#define MAINSERVICE_H
#include "qtservice.h"
#include "managercenter.h"

class MainService : public QtService<QCoreApplication>
{
public:
    MainService(int argc, char *argv[]);
    ~MainService();
protected:
    /* 开启服务 */
    virtual void start() override;

    /* 停止服务 */
    virtual void stop() override;

    /* 暂停服务 */
    virtual void pause() override;

    /* 重启服务 */
    virtual void resume() override;
private:
    bool isStart;
    ManagerCenter *manager;
};

#endif // MAINSERVICE_H
